<template>
  <div class="app-container home">
    <div class="welcome-container">
      <div class="welcome-header">
        <h1 class="welcome-title">欢迎使用玻璃切割优化系统</h1>
        <div class="welcome-version">版本 {{ version }}</div>
      </div>
      
      <el-row :gutter="20" class="feature-cards">
        <el-col :span="8">
          <el-card shadow="hover" class="feature-card">
            <template #header>
              <div class="card-header">
                <el-icon><Operation /></el-icon>
                <span>优化切割</span>
              </div>
            </template>
            <div class="card-content">
              <p>智能算法优化切割方案，最大化材料利用率</p>
              <el-button type="success" @click="$router.push('/preoptimization/optimization')">开始优化</el-button>
            </div>
          </el-card>
        </el-col>

        <el-col :span="8">
          <el-card shadow="hover" class="feature-card">
            <template #header>
              <div class="card-header">
                <el-icon><Document /></el-icon>
                <span>优化进程管理</span>
              </div>
            </template>
            <div class="card-content">
              <p>高效管理您的优化包，轻松跟踪优化进程状态</p>
              <el-button type="primary" @click="$router.push('/optimize/package')">立即查看</el-button>
            </div>
          </el-card>
        </el-col>
        
        <el-col :span="8">
          <el-card shadow="hover" class="feature-card">
            <template #header>
              <div class="card-header">
                <el-icon><DataAnalysis /></el-icon>
                <span>高级设置</span>
              </div>
            </template>
            <div class="card-content">
              <p>全局设置，帮助您做出更明智的决策</p>
              <el-button type="warning" @click="$router.push('/setting/process')">查看设置</el-button>
            </div>
          </el-card>
        </el-col>
      </el-row>
      
    </div>
  </div>
</template>

<script setup name="Index">
const version = ref('1.0.0')




</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>

